package mobilesearch.receiver;

import java.util.ArrayList;

import mobilesearch.data.ImageData;
import mobilesearch.ui.OnSearchResultListener;

public class ImageReceiver {

	private static final String TAG = "ImageReceiver";
	private ArrayList<ImageData> imageList;
	private OnSearchResultListener listener;
	
	public ImageReceiver(ArrayList<ImageData> imageList, OnSearchResultListener listener) {
		this.imageList = imageList;
		this.listener = listener;
	}
	
	public void processImageData(){
		int size = this.imageList.size();
		for(int i = 0; i < size; i++){
			ImageData data = this.imageList.get(i);
			String name = data.getImageName();
			String time = data.getImageTime();
			this.listener.onReceiveImageData(name, time);
		}
	}

}
